<script>
	export default {
		onLaunch: function() {
			// #ifdef MP-WEIXIN
				wx.setInnerAudioOption({
					obeyMuteSwitch: false
				})
			// #endif
			const token = uni.getStorageSync("ai-token") || ''
			if(token) {
				this.$store.state.isLogin = true
				this.$store.dispatch("getUser")
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";
	@import 'style/flex.css';
	@import 'style/base.css';
	@import 'style/position.css';
	@import 'style/text.css';
	body {
		background: #f5f5f5;
		min-height: calc(100vh - var(--window-bottom) - var(--window-top));
		.movable-area {
			height: calc(100vh - var(--status-bar-height));
			width: 750rpx;
			position: fixed;
			top: var(--status-bar-height);
			left: 0;
			pointer-events: none;
			z-index: 999;
		}
		.movable-view {
			width: 102rpx;
			height: 102rpx;
			border-radius: 50%;
			background: #434341;
			box-shadow: 5rpx 5rpx 20rpx 1rpx #434341;
			opacity: 1;
			position: relative;
			z-index: 999;
			pointer-events: auto;
		}
	}
</style>
